//
//  Observer.m
//  Do Not Disturb
//
//  Created by Chris Karr on 9/14/07.
//  Copyright 2007 __MyCompanyName__. All rights reserved.
//

#import "Observer.h"


@implementation Observer

- (Observer *) init
{
	if (self = [super init])
		defaults = [NSUserDefaults standardUserDefaults];

	return self;
}

- (void) scan
{
	NSLog (@"Generic observer scan (does nothing)");
}

- (NSString *) getName
{
	return @"Observer";
}

- (void) setEnabled:(BOOL) enable
{
	return [defaults setBool:enable forKey:[NSString stringWithFormat:@"%@ - Enabled", [self getName]]];
}

- (BOOL) isEnabled
{
	return [defaults boolForKey:[NSString stringWithFormat:@"%@ - Enabled", [self getName]]];
}

@end
